<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="/layout/template.xhtml">
 
 	
 
 


    <ui:define name="body">

        <h:form>
        <table  class="login" align="center" cellspacing="0" cellpadding="0" >
       		 <tr>
		        <td align="center">
       				 <h2 id="header" align="center"></h2>
       			</td>
       		</tr>
       	</table>
        <table  class="mainIndex" align="center" cellspacing="0" cellpadding="0" >
        
      		<tr>
		        <td align="center">
		        	
		        	<h:messages id="messages" style="text-align:left;color:#9b0700;" globalOnly="true" styleClass="message"
			            errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
			            rendered="#{showGlobalMessages != 'false'}"/>
			 		
						<tr  class="imgdata">
							<td class="teste2"  align="left" valign="top">
							
								<h:outputText styleClass="labelfull" id="empreendimentoLabel" value="Empreendimento: " />
								<br />
								<h:selectOneMenu required="false" id="empreendimentoInput" value="#{empreendimento.codigo}" >
									<s:selectItems itemValue="#{obj.codigo}" value="#{listaEmpreendimento}" var="obj" label="#{obj.nome}" noSelectionLabel="Selecione"/>
								</h:selectOneMenu>
								<br />
								<h:message for="empreendimentoInput" style="font-size:10px; color:#fb0000"/>
								<br />
								
								<h:outputText styleClass="labelfull" id="LabelunidadeEmpreendimento" value="Unidade do Empreendimento: " />
								<br />
								<h:inputText value="#{gerarRelatorioAction.unidadeEmpreendimento}" id="unidadeEmpreendimento"  required="false" maxlength="6"/>
								<br />
								<h:message for="unidadeEmpreendimento" style="font-size:10px; color:#fb0000"/>
								<br/>
								<h:outputText styleClass="labelfull" value="Valor da Venda: " style="text-align:left !important;" />
								<br />
								<h:inputText  value="#{gerarRelatorioAction.valorVenda}" id="valor" alt="decimal" >
								<rich:jQuery  selector="#valor" query="setMask({})"
				                			timing="onload" />
				                </h:inputText>
								<br/>
								<br/>
								<h:outputText styleClass="labelfull" value="Sinal de Venda: " />
								<br />
								<h:inputText id="sinalVendaInput" value="#{gerarRelatorioAction.sinalVenda}" alt="decimal" >
								<rich:jQuery  selector="#sinalVendaInput" query="setMask({})"
				                			timing="onload" />
								</h:inputText>
								<br/>
								<br/>
								<h:outputText styleClass="labelfull" id="creciCorretorLabel" value="Creci corretor: " />
								<br />
								<h:inputText value="#{corretor.creci}" id="creciCorretorInput" required="false" maxlength="6"/>
								<br />
								<br/>
								<h:outputText styleClass="labelfull" id="primeiraVendaLabel" value="Primeira venda? " />
								<h:selectBooleanCheckbox id="primeiraVenda"  value="#{corretor.primeiraVenda}"  />
								<br/>
								<br/>
								<h:message for="creciCorretorInput" style="font-size:10px; color:#fb0000"/>
								<br/>
								<br/>
								<h:commandButton action="#{gerarRelatorioAction.gerarRelatorio()}" value="Consultar Rateio" /> 
								<h:commandButton action="#{enviarEmailAction.enviarRelatorioCorretores()}" value="Relatorio" /> 
								
								
								<br />
								<br />
								
							</td>
							
							
									
						</tr>
						
						</td>
						</tr>
					</table>
						
						
						
						
					<s:div rendered="#{exibirResultado}">
						<table  class="mainIndex" align="center" cellspacing="0" cellpadding="0" >
							<tr   width="1000" height="10">
						    </tr>
							<tr  class="imgdata" width="1000" height="50">
								<td class="titulo" width="210"  align="center" valign="top">
									<br/>
									<h:outputText styleClass="titulo" id="labelNome" value="Nome: " />
								</td>
								<td class="teste" width="210"  align="left" valign="top">
									<h:outputText styleClass="labelfull"  id="labelCorretorNome" value="Corretor da venda: " />
									<br/>
									<h:outputText styleClass="labelfull"  id="labelCorretorNome2" value="#{corretor.nome}" />
									<br/>
								</td>
								<td class="teste" width="210"  align="left" valign="top">
									<h:outputText styleClass="labelfull" id="labelPatrocinadorVenda" value="Patrocinador: " />
									<br/>
									<h:outputText styleClass="labelfull" id="labelPatrocinadorNome" value="#{corretor.patrocinador.nome}" />
									<br/>
									
								</td>
								<td class="teste" width="210"  align="left" valign="top">
									<h:outputText styleClass="labelfull" id="labelCoordenadorVenda" value="Empreendedor Master: " />
									<br/>
									<h:outputText styleClass="labelfull" id="labelCoordenadorNome" value="#{corretor.coordenador.nome}" />
									<br/>
								</td>
							
							</tr>
						
							<tr  class="imgdata" width="1000" height="50">
								<td class="teste" width="210"  align="center" valign="top">
									<h:outputText styleClass="labelfull" id="labelCPF" value="CPF: " />	
								</td>
								
								<td class="teste" width="210"  align="left" valign="top">
									
									
									<h:outputText styleClass="labelfull" id="labelCorretorCPF" value="#{corretor.getCPFFormatado()}" />
								</td>
								<td class="teste" width="210"  align="left" valign="top">
									
									<h:outputText styleClass="labelfull" id="labelPatrocinadorCPF" value="#{corretor.patrocinador.getCPFFormatado()}" />
								</td>
								<td class="teste" width="210"  align="left" valign="top">
									
									<h:outputText styleClass="labelfull" id="labelCoordenadorCPF" value="#{corretor.coordenador.getCPFFormatado()}" />
								</td>
							</tr>
						<tr   width="1000" height="10">
						</tr>
							
							
							<tr  class="imgdata" width="1000" height="50">
								<td class="teste" width="210"  align="center" valign="top" colspan="4">
								<br/> 
								<h:outputText styleClass="cheque" id="Cheque" value="CHEQUES" />
								</td>
							</tr>
							<tr  class="imgdata" width="1000" height="50">
							
								<td class="teste" width="140"  align="left" valign="top" colspan="2">
									<br/>
									<h:outputText styleClass="labelfull" id="labelCorretor2" value="Corretor:" />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelPatrocinador2" value="Patrocinador:" />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelDiamante2" value="Empreendedor Master: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelDiretorEquipe2" value="Diretor de Equipe: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelDiretorRelNeg2" value="Diretor de Rel e Novos Negócios: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelCoordenadorProd2" value="Coordenador de Produto: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelBeiramar2" value="Beiramar Imóveis: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelConstrutora" value="Construtora 1: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelConstrutora2" value="Construtora 2: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelSatiCorretor" value="SATI Corretor: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelSatiBeiramar" value="SATI Beiramar: " />
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelNFConstru" value="NF Beiramar: " />
								</td>
								<td class="teste" width="160"  align="right" valign="top">
									
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoCorretor2" value="#{venda.totalCorretor}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoPatrocinador2" value="#{venda.totalPatrocinador}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoCoordenador2" value="#{venda.totalCoordenador}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoDiretorEquipe2" value="#{venda.totalDiretorEquipe}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoDiretorRelNegocio2" value="#{venda.totalDiretorRelNegocio}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoCoordenadorProd2" value="#{venda.totalCoordenadorProduto}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoBeiramar2" value="#{venda.totalBeiramar}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoContrutora2" value="#{venda.valorConstrutora}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoContrutora22" value="#{venda.valorConstrutora2}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoSatiCorretor" value="#{venda.satiCorretor}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelComissaoSatiBeiramar" value="#{venda.satiBeiramar}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelNotaFiscalConstrutora" value="#{venda.valorNotaFiscalContrutora}" >
										<f:convertNumber locale="pt_BR" maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="13" type="currency" currencySymbol="R$ " />
									</h:outputText>
									<br/>
									<br/>
									
									<h:commandButton value="Gerar Arquivo PDF" action="#{gerarRelatorioAction.gerarPDF()}" />
								</td>
								
							
								<td class="teste" width="50"  align="left" valign="top">
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste1" value= "#{venda.tirarChequeCorretor}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste2" value= "#{venda.tirarChequePatrocinador}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste3" value= "#{venda.tirarChequeEmpreendedor}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTest4" value= "#{venda.tirarChequeDiretorEquipe}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTest5" value= "#{venda.tirarChequeDiretorNovosNeg}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTest6" value= "#{venda.tirarChequeCoordenadorProduto}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste7" value= "#{venda.tirarChequeBeiramar}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste8" value= " &lt;&lt;  &gt;&gt; Tirar Cheque " ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste11" value= "#{venda.tirarChequeContrutora2}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste9" value= "#{venda.tirarChequeSatiCorretor}" ></h:outputText>
									<br/>
									<br/>
									<h:outputText styleClass="labelfull" id="labelTeste10" value= "#{venda.tirarChequeSatiBeiramar}" ></h:outputText>
									
								</td>
							</tr>
								
							</table>
						</s:div>
							
							
					
						
				
			
			
			
	    
   
	</h:form>

    </ui:define>
</ui:composition>
